﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Elements.Links
{
    /// <summary>
    /// 直线连线定义
    /// </summary>
    public class LineLink : LinkBase
    {
        public override void Draw(Graphics g)
        {
            var startPoint = StartShape.GetCentertPoint();
            var endPoint = EndShape.GetCentertPoint();

            g.DrawLine(new Pen(BackgroundColor,2), startPoint, endPoint);
        }
    }
}
